# 作者：SP
# 开发时间：2023/12/30 10:12
class Restaurant:
    def __init__(self,restaurant_name,cuisine):
        self.restaurant_name = restaurant_name
        self.cuisine = cuisine
        #创建一个带有默认值的属性
        self.number_served = 0
    def describe_reataurant(self):
        print(f'{self.restaurant_name} is very good')
    def open_restaurnat(self):
        print(f'{self.cuisine} is what ,and {self.number_served}')
    def set_num_served(self,shu):
        self.number_served = shu
    def increment_number_served(self,people):
        self.number_served += people
if __name__ == "__main__":
    my_restaurant = Restaurant('JACK','BUZHIDAO')
    print(my_restaurant.restaurant_name)
    print(my_restaurant.cuisine)
    my_restaurant.describe_reataurant()
    my_restaurant.open_restaurnat()
    print(my_restaurant.number_served)
    my_restaurant.number_served = 100
    print(my_restaurant.number_served)
    my_restaurant.set_num_served(7)
    my_restaurant.open_restaurnat()
    my_restaurant.increment_number_served(3)
    my_restaurant.open_restaurnat()
